package meeting0203;

import node.ListNode;
import node.ListNodeManager;

public class Solution {
    public static void main(String[] args) {
        int[] nums = {1, 2, 3, 4, 5};
        ListNode head = ListNodeManager.createListNodeByArray(nums);
        deleteNode(head);
    }

    public static void deleteNode(ListNode node) {
        node.val = node.next.next.val;
        node.next = node.next.next;
    }
}
